<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>销售SKU</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">销售SKU列表</h1>
  <span class="pagedesc"></span>
 
</div>
<!--pageheader-->

<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">

      <!--搜索栏-->
           <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
    <form class="stdform stdform2" method="get" id="search" action="/product/saleskulist">
    <input type='hidden' name='if_csv' id='if_csv'>

      <div class="tableoptions"> 创建时间：
       <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
       关键词: <input type="text" name="other" id="other" class="width100" value="{{$other}}" placeholder="SKU、销售SKU" />
       &nbsp;
      店铺:
                           <select name="shopid" class="selection select2_group" style="width:200px;">
                            <option value=""  selected>请选择</option>
                            
 							 {{foreach from=$d_shop item=li key=key}}
                                <option value="{{$li.id}}" {{if $li.id==$shopid}} selected{{/if}}>{{$li.name}}</option>
                        	{{/foreach}}
                            </select>
                           
&nbsp;
        <button class="btn btn_orange btn_search radius50">Search</button>
         &nbsp;  &nbsp; 
         <a href="javascript:void(0)" onClick="iscsv()">导出CSV</a>
       
      </div>
    </form>
    <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable">
<thead>
  <tr class="lbbt">
    <td  bgcolor="#FEFFF1">SKU</td>
    <td width="22%" bgcolor="#FEFFF1">销售SKU</td>
    <td  bgcolor="#FEFFF1">店铺</td>
    <td  bgcolor="#FEFFF1">创建人</td>
    <td  bgcolor="#FEFFF1">创建时间</td>
    <td bgcolor="#FEFFF1">操作</td>
    
  </tr>
</thead>


  {{foreach from=$list item=li key=key}}
  <tr>
    <td valign="middle" bgcolor="#FFFFFF"><a href="/product/editProduct?goods_id={{$li.goods_id}}"><span class="red">{{$li.goods_sku}}</span></a>
    </td>
    <td bgcolor="#FFFFFF"> {{$li.autosku}}</td>
   
    <td valign="middle" bgcolor="#FFFFFF">{{$li.shopname}}</td>
    <td valign="middle" bgcolor="#FFFFFF">{{$li.createuser}}</td>
    <td bgcolor="#FFFFFF" class="cz">{{$li.datetime}}</td>
    <td bgcolor="#FFFFFF" class="cz">
    <span><img	src="/fuman/images/sc.jpg" width="15" height="16" /> 删除</span>
   </td>
  </tr>
     {{/foreach}}

</table>
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
</div>
</div>

<!-- 模态框（Modal）生成销售SKU -->
<form action="/product/ajaxbutton?op=savesalesku"  method="post" name="otherform" id="otherform" >
  <div class="modal fade" id="addattributeform" tabindex="-1" role="dialog" aria-labelledby="returnaddattributeform" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="returnaddattributeform">生成销售SKU </h4>
        </div>
        <div class="modal-body">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td> <div style="width:100%;height:400px; overflow-y:scroll; border:0px solid;">
              	
            <span id="showsaleskuid"></span>
            </div></td>
            </tr>
          <tr>
              <td>需要用到的销售SKU，请绑定对应店铺，否则请留空，避免资源浪费！</td>
            </tr>
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
            <button type="button" class="btn btn-primary"  onclick="AWSsubmit('otherform','addattributeform')"> 提交 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
</form>
<!-- 模态框（Modal）添加商品图片 -->


</body>
</html>